package entity;

import java.io.Serializable;
import java.util.Vector;

public class Reply implements Serializable {
	private static final long serialVersionUID = 1L;

	private int type = -1;

	/* type = 0 - register */
	private boolean register_isSuccessful = false;

	/* type = 1 - login */
	private boolean login_isSuccessful = false;
	private UserInfo login_usrinfo = null;

	/* type = 2 - search user */
	private Vector<UserInfo> searchUser_vui = null;

	/* type = 3 - add friend */
	private boolean addFriend_isSuccessful = false;

	/*
	 * type = 4 - publish news feed private long publishNewsFeed_uid = -1;
	 * private String publishNewsFeed_text = null; private int
	 * publishNewsFeed_type = -1;
	 */
	private boolean publishNewsFeed_isSuccessful = false;

	/* type = 5 - check news feed */
	private Vector<TextInfo> checkNewsFeed_vti = null;

	public Reply(int type) {
		this.type = type;
	}

	public int getType() {
		return type;
	}

	public void setRegister_isSuccessful(boolean register_isSuccessful) {
		this.register_isSuccessful = register_isSuccessful;
	}

	public boolean isRegisterSuccessful() {
		return register_isSuccessful;
	}

	public void setLogin_isSuccessful(boolean login_isSuccessful) {
		this.login_isSuccessful = login_isSuccessful;
	}

	public boolean isLoginSuccessful() {
		return login_isSuccessful;
	}

	public void setSearchUser_vui(Vector<UserInfo> searchUser_vui) {
		this.searchUser_vui = searchUser_vui;
	}

	public Vector<UserInfo> getSearchUser_vui() {
		return searchUser_vui;
	}

	public void setAddFriend_isSuccessful(boolean addFriend_isSuccessful) {
		this.addFriend_isSuccessful = addFriend_isSuccessful;
	}

	public boolean isAddFriendSuccessful() {
		return addFriend_isSuccessful;
	}

	public void setPublishNewsFeed_isSuccessful(
			boolean publishNewsFeed_isSuccessful) {
		this.publishNewsFeed_isSuccessful = publishNewsFeed_isSuccessful;
	}

	public boolean isPublishNewsFeedSuccessful() {
		return publishNewsFeed_isSuccessful;
	}

	public void setCheckNewsFeed_vti(Vector<TextInfo> checkNewsFeed_vti) {
		this.checkNewsFeed_vti = checkNewsFeed_vti;
	}

	public Vector<TextInfo> getCheckNewsFeed_vti() {
		return checkNewsFeed_vti;
	}

	public void setLogin_usrinfo(UserInfo login_usrinfo) {
		this.login_usrinfo = login_usrinfo;
	}

	public UserInfo getLogin_usrinfo() {
		return login_usrinfo;
	}

}
